Inheritance diagram for XFcCommunicationHandler:
Public Types | |
enum | XFCNET_HANDLER_ERRORS { XFCNET_MAX_CLIENT_COUNT_REACHED = 1000, XFCNET_INDEX_OUT_OF_RANGE, XFCNET_INVALID_CLIENT_ID, XFCNET_ARRAYSIZELEAK_ERROR, XFCNET_ARRAYSIZEMEMORY_ERROR, XFCNET_ARRAYSIZE_OK = 1 } |
Enumerated communication handlers internal errors. More... | |
enum | XFCNET_CONNECTION_SPEED { XFCNET_MODEM_28_8, XFCNET_HSCD_14_4, XFCNET_GPRS, XFCNET_WLAN_2MB, XFCNET_WLAN_11MB, XFCNET_BLUETOOTH } |
Connection speed enumeration. More... | |
Public Member Functions | |
virtual XFCIMPORT | ~XFcCommunicationHandler () |
Virtual destructor. | |
XFCIMPORT INT | addClientCommWin (XFcClientCommWin *aClientWinData) |
Sets client communication data. | |
XFCIMPORT XFcClientCommWin * | removeClientCommWin (INT32 aClient) |
Removes client count window. | |
XFCIMPORT XFcClientCommWin * | getClientCommWin (INT32 aClient) |
Gets client count window. | |
XFCIMPORT void | setUnknownSenderHandler (XFcUnknownSender *aHandler) |
Sets handler for unknown packet sender. | |
XFCIMPORT XFcUnknownSender * | getUnknownSenderHandler () |
Gets handle of unknown packet sender. | |
XFCIMPORT INT | setMaxClientCount (INT32 aClientCount) |
Sets maximum client count. | |
XFCIMPORT INT32 | getClientCount () const |
Gets client count. | |
XFCIMPORT INT32 | getMaxClientCount () const |
Gets maximum client count. | |
XFCIMPORT void | setClientBaseNumber (INT32 aBase) |
Sets base number of client. | |
XFCIMPORT INT32 | getClientBaseNumber () const |
Gets base number of client. | |
XFCIMPORT void | setClientLost (XFcClientLost *aClientLost) |
Sets client lost handler. | |
XFCIMPORT XFcClientLost * | getClientLost () const |
Sets client lost handler. | |
XFCIMPORT void | setConnectionType (INT aType) |
Sets connection type. | |
XFCIMPORT INT | getConnectionType () const |
Gets connection type. | |
XFCIMPORT void | setConnectionSpeed (INT aSpeedType) |
Sets handlers connection speed. | |
XFCIMPORT void | tuneConnectionSpeed (INT32 aSpeed) |
Tunes connection speed directly. | |
XFCIMPORT INT32 | getConnectionSpeed () const |
Gets current connection speed. | |
XFCIMPORT INT32 | testAddress (const XFcAddress &aAddress) |
Tests incoming packet sender address. | |
XFCIMPORT void | setLastError (INT32 aError) |
Sets handlers last error. | |
XFCIMPORT INT32 | getLastError () const |
Gets handlers last error. | |
XFCIMPORT void | setClientLastError (INT32 aClient, INT32 aError) |
Sets client last error. | |
XFCIMPORT INT32 | getClientLastError (INT32 aClient) const |
Gets clients last error. | |
virtual XFCIMPORT void | closeService ()=0 |
Close the communication service. | |
virtual XFCIMPORT INT | outgoing ()=0 |
Sends data. | |
virtual XFCIMPORT INT | incoming ()=0 |
Gets data. | |
virtual XFCIMPORT void | checkActivity ()=0 |
Activity check. | |
virtual XFCIMPORT void | unknownSender (const XFcAddress *, XFcObjectPacketBase *)=0 |
Handles data from unknown address. | |
Protected Member Functions | |
XFCIMPORT INT | baseInit () |
Initializes packet. | |
XFCIMPORT | XFcCommunicationHandler () |
Protected constructor. | |
Protected Attributes | |
XFcClientCommWin ** | mClientWinData |
Holds client array. | |
XFcUnknownSender * | mUSender |
Holds unknown sender, senders address is not known. | |
XFcClientLost * | mClientLost |
Holds connection lost event interface. | |
INT32 | mConnectionSpeed |
Connection speed. | |
Private Attributes | |
INT | mMaxClientCount |
Holds maximum client count. | |
INT | mBaseNumber |
Holds base number for client. | |
INT32 | mConnectionType |
Holds connection type, e.g. INET, IRDA, BLUETOOTH. | |
INT32 | mLastError |
Holds communication handlers last error, argument is initialized to XFCNET_ERROR. |
It uses array of clients which are "connected" together. Data flow will allways go throught this object. It offers basic functionality to handle communication between two clients. It doesn't own any of clients, one have to delete all added clients before deleting this class.
|
Connection speed enumeration.
|
|
Enumerated communication handlers internal errors.
|
|
Protected constructor.
|
|
Virtual destructor.
|
|
Sets client communication data.
|
|
Initializes packet.
|
|
Activity check.
Implemented in XFcBtHandler, and XFcInetHandler. |
|
Close the communication service.
Implemented in XFcBtHandler, and XFcInetHandler. |
|
Gets base number of client.
|
|
Gets client count window.
|
|
Gets client count.
|
|
Gets clients last error.
|
|
Sets client lost handler.
|
|
Gets current connection speed.
|
|
Gets connection type.
|
|
Gets handlers last error.
|
|
Gets maximum client count.
|
|
Gets handle of unknown packet sender.
|
|
Gets data.
Implemented in XFcBtHandler, and XFcInetHandler. |
|
Sends data.
Implemented in XFcBtHandler, and XFcInetHandler. |
|
Removes client count window.
|
|
Sets base number of client.
|
|
Sets client last error.
|
|
Sets client lost handler.
|
|
Sets handlers connection speed.
|
|
Sets connection type.
|
|
Sets handlers last error.
|
|
Sets maximum client count.
|
|
Sets handler for unknown packet sender.
|
|
Tests incoming packet sender address.
|
|
Tunes connection speed directly.
|
|
Handles data from unknown address.
Implemented in XFcBtHandler, and XFcInetHandler. |
|
Holds base number for client.
|
|
Holds connection lost event interface.
|
|
Holds client array.
|
|
Connection speed.
|
|
Holds connection type, e.g. INET, IRDA, BLUETOOTH.
|
|
Holds communication handlers last error, argument is initialized to XFCNET_ERROR.
|
|
Holds maximum client count.
|
|
Holds unknown sender, senders address is not known.
|
![]() | ||||
![]() |
Confidential Copyright © 2002-2003 Fathammer | with doxygen by Dimitri van Heesch |